Skip to main content

Einstein Summation New API

This is evaluates the einstein summation on the operands. It is analogous to numpy.einsum, and uses the same notation.

Examples for all the possible use cases are provided below.

.. autofunction:: csdl.std.einsum_new_api.einsum_new_api

Inner Products#

.. toctree:: :maxdepth: 1 :titlesonly:

ex_einsum_new_inner_vector_vector.rst ex_einsum_new_inner_vector_vector_sparse.rst ex_einsum_new_inner_tensor_vector.rst ex_einsum_new_inner_tensor_vector_sparse.rst

Outer Products#

.. toctree:: :maxdepth: 1 :titlesonly:

ex_einsum_new_outer_vector_vector.rst ex_einsum_new_outer_vector_vector_sparse.rst ex_einsum_new_outer_tensor_vector.rst ex_einsum_new_outer_tensor_vector_sparse.rst

Reorder Operations#

.. toctree:: :maxdepth: 1 :titlesonly:

ex_einsum_new_reorder_matrix.rst ex_einsum_new_reorder_matrix_sparse.rst ex_einsum_new_reorder_tensor.rst ex_einsum_new_reorder_tensor_sparse.rst

Summation Operations#

.. toctree:: :maxdepth: 1 :titlesonly:

ex_einsum_new_vector_summation.rst ex_einsum_new_vector_summation_sparse.rst ex_einsum_new_tensor_summation.rst ex_einsum_new_tensor_summation_sparse.rst

Special Operations#

.. toctree:: :maxdepth: 1 :titlesonly:

ex_einsum_new_multiple_vector_summation.rst ex_einsum_new_multiple_vector_summation_sparse.rst